<?php include PATH_TPL."/tpl_header.html" ?>
<script type="text/javascript">
$("#student-menu").addClass('in');
</script>

<div class="header">
    <h1 class="page-title">学生管理</h1>
</div>
        
<ul class="breadcrumb">
    <li><a href="<?php echo SITE_ROOT?>admin/show-students">学生管理</a> 
    	<span class="divider">/</span></li>
    <li><a href="<?php echo SITE_ROOT?>admin/show-students">学生信息</a><span class="divider">/</span></li>
    <li>从文件批量导入学生信息</li>
</ul>

<div class="span9">
	<div class="block">
	    <p class="block-heading">导入文件</p>
	    <div class="block-body">
	    	<form method="post" action="<?php echo SITE_ROOT;?>admin/upLoadStudent" enctype="multipart/form-data">   
			     <table align=center width="100%">   
			      <tr>    
			        <td width=55 height=20 align="center"><input type="hidden" name="MAX_FILE_SIZE" value="2000000">文件： </td>   
			        <td height="20">    
			        <input name="infoFile" type="file" value="浏览" >              
			        <input type="submit" value="上传" name="submit">   
			        </td>   
			      </tr>   
			     </table>   
			</form><br><br> 
		    <div class="panel panel-default" style="font-style:italic; color:gray;">
		        <div class="panel-heading">
		            <h4 class="panel-title">上传文件注意事项</h4>
		        </div>
		        <div class="panel-body">
		            <ul>
		                <li>文件最大不超过 <strong>2 MB</strong>.</li>
		                <li>文件后缀名只能为.xls或.xlsx</li>
		                <li>excel文件格式如下(例子)：<br>
						<table cellspacing='0' cellpadding="5" border='1'>
							<tr>
								<td>uid</td>
								<td>name</td>
								<td>major_id</td>
								<td>class_id</td>
							</tr>
							<tr>
								<td>2010533011</td>
								<td>小明</td>
								<td>physic</td>
								<td>2010533</td>
							</tr>
						</table>
						<p>注：
							<ul>
								<li>physic 表示应用物理专业</li>
								<li>2010533 表示物理1011班</li>
							</ul>
						</p>
		                </li>	
		            </ul>
		        </div>
	    	</div>   
	    </div>
	</div>
</div>

<div class="container-fluid">
    <div class="row-fluid">
        
    </div>
</div>

<?php include PATH_TPL."/tpl_sidebar.html" ?>